package com.luanye.enjoy.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.experimental.Accessors;

@Data@Builder@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("wx_user")
public class User  {

    @TableId
    private Long id;

    private String nickname;

    private String openId;

    private String province;

    private String city;

    private String district;

    private String avatar;

    private String phone;

    private String email;

    private Integer isEnabled;

    private String title;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    private Integer delFlag;

}
